module.exports = {

    publicPath: "./",
    // 关闭线上源码
    productionSourceMap: false,
    chainWebpack: (config) => {
        const svgRule = config.module.rule('svg');

        svgRule.uses.clear();

        svgRule
            .use('babel-loader')
            .loader('babel-loader')
            .end()
            .use('vue-svg-loader')
            .loader('vue-svg-loader');
    },
    devServer: {
        proxy: {
            '/proxy': {
                hotOnly: false,
                changeOrigin: true,
                isableHostCheck: true,
                target: 'https://app.aseh.com.cn',
                pathRewrite: {
                    '^/proxy': '/sys'
                }
            }
        }
    }
}